#include "widget.h"
#include "ui_widget.h"

#include <QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QPushButton* button = new QPushButton(this);
    button->setGeometry(0, 0, 150, 150);
    button->setText("按钮");
    button->setStyleSheet("QPushButton { border: 5px solid blue; margin: 20px; } ");

}

Widget::~Widget()
{
    delete ui;
}

